package thread;


public class test {

	public static void main(String[] args) {

	    String mobile =PropertiesUtil.getValue("mobile");        
	    String driverName = PropertiesUtil.getValue("driverName");  
	  	String dbURL = PropertiesUtil.getValue("dbURL");  
	    String dbName = PropertiesUtil.getValue("dbName"); 
	    String userName =PropertiesUtil.getValue("userName");   
	    String userPwd = PropertiesUtil.getValue("userPwd");
        String table="noise";
        String field="db";
        String location="LOCATION";
        String createTime ="TimeStamp";
        String condition=">";
        int interval=20;
        int timeSpan=5;//轮询间隔
		String threshold="80";//阈值
		String querycontent="db";
		/*transferParameters(mobile,driverName,dbURL,dbName,table,field,createTime,location,condition,
				userName,userPwd,interval,timeSpan,threshold,querycontent);*/
	}
	/*public static PollingQueryRunnable transferParameters(String mobile ,String driverName ,String dbURL,String dbName ,String table,String field,
		 String createTime,String location,String condition,String userName,String userPwd ,int interval,int timeSpan,String threshold,String querycontent){
		AlertParameters ap=new AlertParameters(dbURL, driverName, userName , userPwd, dbName, table,
        		field, condition, interval, timeSpan, threshold,querycontent,createTime,location);
        SmsParameters smsParams=new SmsParameters();
        smsParams.setApikey(JavaSmsApi.getAPIKEY());
        smsParams.setMobile(mobile);
       PollingQueryRunnable pq=new PollingQueryRunnable(ap,smsParams);
        
           Thread t2 = new Thread(pq);
         t2.start();
        
       // pq.stopPolling();
        return pq;
	}*/

}
